<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ActivityComment extends Model
{
    //
    protected $table = 'activity_comment';


    protected $fillable = [
        'activity_id',
        'user_id',
        'content',
        'img_url'

    ];


    public function user(){

        return $this->hasOne(User::class,'id','user_id')->select(['id','nickname','header_img']);

    }

}
